package com.yaoxun.console.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {

	@Autowired
	private StringRedisTemplate stringRedisTemplate;
	
	@GetMapping("/test")
	public String test() {
		stringRedisTemplate.opsForValue().set("name", "dsadsa");
		return "test";
	}
	
}
